package wsjc.com.buglydemo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity  implements View.OnClickListener {
    private Button butBug;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        butBug = (Button) findViewById(R.id.btn_bug);
        butBug.setOnClickListener(this);
    }


    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.btn_bug:
                Intent intent = new Intent(this,BugActivity.class);
                startActivity(intent);

        }
    }
}
